Skip to content

rust: only require context when registering a miscdev device#614

Merged
wedsonaf merged 1 commit intoRust-for-Linux:rustfrom
wedsonaf:miscdev-context
Jan 11, 2022
Merged

rust: only require context when registering a miscdev device#614
wedsonaf merged 1 commit intoRust-for-Linux:rustfrom
wedsonaf:miscdev-context

Conversation

@wedsonaf
Copy link
Copy Markdown

This way it's possible to create a registration instance without having
the context yet, and later provide the context when actually
registering. This is useful for cases when the registration is
contained in the context data, for example, when registering a new
miscdev from probe functions.

Signed-off-by: Wedson Almeida Filho wedsonaf@google.com

This way it's possible to create a registration instance without having
the context yet, and later provide the context when actually
registering. This is useful for cases when the registration is
contained in the context data, for example, when registering a new
`miscdev` from `probe` functions.

Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com>
@wedsonaf wedsonaf merged commit 00bb9f4 into Rust-for-Linux:rust Jan 11, 2022
@wedsonaf wedsonaf deleted the miscdev-context branch January 11, 2022 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant